package org.example.etl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.example.etl.entity.WarnFlightHistory;

public interface WarFlightHistoryMapper extends BaseMapper<WarnFlightHistory> {
    @Select(" SELECT COUNT(*) from warnflighthistory_number where gj_id=#{gjId};")
    public boolean isExistThisWarn(String gjId);


    @Update("update warnflighthistory_number set count=count+'1' where gj_id=#{gjId}; ")
    public void updateAnWarnMsg(String gjId);

}
